using System;
using Decisions.HL7.Message;

namespace Decisions.HL7
{
    public class HL7FieldReturn 
    {
        private string fieldName;
        private HL7FieldAttribute _fieldAttribute;

        public HL7FieldReturn(string fieldName, HL7FieldAttribute _fieldAttribute)
        {
            this.fieldName = fieldName;
            this._fieldAttribute = _fieldAttribute;
        }

        public string FieldName
        {
            get { return fieldName; }
        }

        public HL7FieldAttribute FieldAttribute
        {
            get { return _fieldAttribute; }
        }

        public HL7Version Version
        {
            get { return FieldAttribute.Version; }
        }

        public int Position
        {
            get { return FieldAttribute.Position; }
        }

        public HL7Repeat Repeat
        {
            get {  return FieldAttribute.Repeat; }
        }

        public bool Required
        {
            get { return FieldAttribute.Required == HL7Required.True; }
        }

        public static HL7FieldReturn[] GetFieldsForType(Type t)
        {
            return null;
        }
    }
}